package work.flow.demo.config.constant;

import java.util.HashMap;

public interface ConfigMap {

    //数据库配置-主数据库
    HashMap<String, String> ds1 = new HashMap<>() {
        {
            //阿里云环境
//            put("url", "jdbc:postgresql://172.22.13.12:5432/risk_db?useSSL=true&serverTimezone=UTC&useUnicode=true&characterEncoding=UTF-8");
//            put("Username", "postgres");
//            put("Password", "abc123456");
//            put("DriverClassName", "org.postgresql.Driver");

            //测试环境1
            put("url", "jdbc:postgresql://172.26.2.97:5432/test_01?useSSL=true&serverTimezone=UTC&useUnicode=true&characterEncoding=UTF-8");
            put("Username", "postgres");
            put("Password", "abc123456");
            put("DriverClassName", "org.postgresql.Driver");

            //测试环境2
//            put("url", "jdbc:postgresql://10.0.0.77:5432/szcg_db?useSSL=true&serverTimezone=UTC&useUnicode=true&characterEncoding=UTF-8");
//            put("Username", "postgres");
//            put("Password", "abc123456");
//            put("DriverClassName", "org.postgresql.Driver");
        }
    };

    //数据库配置-quartz数据库
    HashMap<String, String> ds2 = new HashMap<>() {
        {
            //阿里云环境
//            put("url", "jdbc:postgresql://172.22.13.12:5432/quartz_db?useSSL=true&serverTimezone=UTC&useUnicode=true&characterEncoding=UTF-8");
//            put("Username", "postgres");
//            put("Password", "abc123456");
//            put("DriverClassName", "org.postgresql.Driver");

            //测试环境1
            put("url", "jdbc:postgresql://172.26.2.97:5432/quartz_db?useSSL=true&serverTimezone=UTC&useUnicode=true&characterEncoding=UTF-8");
            put("Username", "postgres");
            put("Password", "abc123456");
            put("DriverClassName", "org.postgresql.Driver");

            //测试环境2
//            put("url", "jdbc:postgresql://10.0.0.77:5432/quartz_db?useSSL=true&serverTimezone=UTC&useUnicode=true&characterEncoding=UTF-8");
//            put("Username", "postgres");
//            put("Password", "abc123456");
//            put("DriverClassName", "org.postgresql.Driver");
        }
    };

    //redis配置
    HashMap<String, String> rs1 = new HashMap<>() {
        {
            //阿里云环境
//            put("host", "172.22.13.12");
//            put("password", "abc123456");

            //测试环境1
            put("host", "172.26.2.97");
            put("password", "abc123456");

            //测试环境2
//            put("host", "10.0.0.77");
//            put("password", "abc123456");
        }
    };

}
